import { defineStore } from "pinia"
import { ref } from 'vue'

export const useFinanceStore = defineStore('finance', () => {
  const finance = ref({})

  const setFinance = (newFinance) => {
    finance.value = newFinance
  }

  const removeFinance = () => {
    finance.value = {}
  }

  return { finance, setFinance, removeFinance }
})
